// Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
// This source file is part of the Cangjie project, licensed under Apache-2.0
// with Runtime Library Exception.
//
// See https://cangjie-lang.cn/pages/LICENSE for license information.

#ifndef PLATFORM_EXPORT_H
#define PLATFORM_EXPORT_H

#if defined(PLATFORM_WINDOWS)
    #define EXPORT extern "C" __declspec(dllexport)
#elif defined(PLATFORM_MACOS)
    #define EXPORT extern "C" __attribute__((visibility("default")))
#elif defined(PLATFORM_LINUX)
    #define EXPORT extern "C" __attribute__((visibility("default")))
#else
    #define EXPORT extern "C"
#endif

#endif // PLATFORM_EXPORT_H
